<?php
$img_name = $_FILES["dropfitem"]["name"];
$img_size = $_FILES["dropfitem"]["size"];
$img_type = $_FILES["dropfitem"]["type"];
$img_tmp = $_FILES["dropfitem"]["tmp_name"];

$upfile_path = './../../tmp/'.$img_name;
move_uploaded_file($img_tmp, $upfile_path);
echo '<html><script>window.onload=function(){window.top.upload_file(document.getElementById("tmp_img").src);}</script><body><img id="tmp_img" src="./tmp/'.$img_name.'"/></body></html>';
